#include "basket.h"
#include<QMouseEvent>
#include<QApplication>
#include<QCursor>
#include<QPoint>
#include<QDebug>
basket::basket()
{
   bask.load(":/tu/WPS图片-修改尺寸3");
    b_x=(552-bask.width())*0.5;
    b_y=954-bask.height();
    b_rect.setWidth(bask.width());          //初始化
    b_rect.setHeight(bask.height());
    b_rect.moveTo(b_x,b_y);



}

void basket::setposition(int x, int y)
{
    b_x=x;
    b_y=y;
    b_rect.moveTo(b_x,b_y);

}

